package com.constant;

import lombok.Getter;


@Getter
public enum ResultEnum {
    SUCCESS(200,"请求成功"),
    FAIL(-1,"失败"),
    NOT_REGISTRED(101,"未注册"),
    LOGIN_ERROR(102,"登录过期请重新登录"),
    FRIEND_IS_ME(103,"不得添加自己为看护的病人"),
    TREE_PARAM_NULL(104,"必须至少一项指标记录不为空")
    ;

    private int code;
    private String msg;

//    enum构造方法不能是public的
    private ResultEnum(int code,String msg){
        this.code = code;
        this.msg = msg;
    }
}
